<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<script type="text/javascript" charset="utf-8">

	function puanduan(th){
		$.ajax({
			url : '${pageContext.request.contextPath}/spgl/goodsAction!noAuth_searchBarcode.html',
			data : {
							barcode : th.value
					},
			dataType : 'json',
			success : function(d){ 
				parent.sy.messagerShow({
					title : '提示',
					msg : d.msg
				});
			}
		});
	}
</script>
<div style="padding: 5px;overflow: hidden;">
	<form id="goodsForm" method="post">
		<table class="tableForm">
			<tr>
				<th style="width: 80px;">商品条码</th>
				<td><input name="barcode" onblur="puanduan(this)"  class="easyui-validatebox" data-options="required:'true',missingMessage:'请输入商品条码'"/></td>
				<th style="width: 80px;">款&nbsp;&nbsp;&nbsp;&nbsp;号</th>
				<td><input name="type" class="easyui-validatebox" data-options="required:'true',missingMessage:'请填写款号/款式'" /></td>
				<th style="width: 80px;">商品名称</th>
				<td><input name="name" class="easyui-validatebox" data-options="required:'true',missingMessage:'请填写商品名称'" /></td>
			</tr>
			<tr>
				<th>品&nbsp;&nbsp;&nbsp;&nbsp;牌</th>
				<td><input name="bid" style="width: 145px;" data-options="required:'true',missingMessage:'请选择品牌'"/></td>
				<th>商品类别</th>
				<td><input name="gtid" style="width: 145px;" data-options="required:'true',missingMessage:'请选择商品类别'"/></td>
				<th>颜&nbsp;&nbsp;&nbsp;&nbsp;色</th>
				<td><input name="color"/></td>
			</tr>
			<tr>
				<th>尺&nbsp;&nbsp;&nbsp;&nbsp;码</th> 
				<td><input name="size" style="width: 145px;"/></td>
				<th>单&nbsp;&nbsp;&nbsp;&nbsp;位</th> 
				<td><input name="unit" style="width: 145px;" class="easyui-validatebox" data-options="required:'true',missingMessage:'请填写单位'"/></td>
				<th>吊&nbsp;牌&nbsp;价</th> 
				<td><input name="showPrice" id="showPrice" style="width: 145px;" class="easyui-validatebox" data-options="required:'true',missingMessage:'请填写吊牌价'"/></td>
			</tr>
			<tr>
<!-- 				<th>售&nbsp;&nbsp;&nbsp;&nbsp;价</th> -->
<!-- 				<td><input name="salePrice" style="width: 145px;"  value="0" readonly="readonly"/></td> -->
			<!-- 
				<th>价格1</th> 
				<td><input name="price1" style="width: 145px;"/></td>
			</tr>
			<tr>
				<th>价格2</th> 
				<td><input name="price2" style="width: 145px;"/></td>
				<th>价格3</th> 
				<td><input name="price3" style="width: 145px;"/></td>	
			 -->
				<th>进&nbsp;&nbsp;&nbsp;&nbsp;价</th> 
				<td><input name="buyPrice" style="width: 145px;" class="easyui-validatebox" data-options="required:'true',missingMessage:'请填写进价'"/></td>
				<th>备&nbsp;&nbsp;&nbsp;&nbsp;注</th>
				<td colspan="5"><input name="remark" class="easyui-validatebox" /></td>
				<input name="did" type="hidden" />
			</tr>
		</table>
	</form>
</div>